package com.atguigu.lease.common.utils;

import java.util.Random;

public class VerifyCodeUtil {
    public static String getCode(Integer len) {
        Random random = new Random();
        StringBuilder resultString = new StringBuilder();
        for (int i = 0; i < len; i++) {
            /*生成0~10之间的随机数*/
            resultString.append(random.nextInt(10));
        }
        return resultString.toString();
    }
}
